package com.yszhdhy.controller;

import com.yszhdhy.Demo1Feign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/admin/demo2")
public class Demo2Controller {

    @Autowired
    public Demo1Feign demo1Feign;

    @GetMapping("/demo2")
    public String demo1(){
        return "demo2...........";
    }

    @GetMapping("/demo2feign")
    public String demo1feign(){
        return "demo2feign..........";
    }


    @GetMapping("/feigndemo1")
    public String feigndemo1(){
        return demo1Feign.demo1();
    }
}
